import '@/assets/css/main.css';
import 'virtual:svg-icons-register';

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import i18n from '@/lang';
import directives from '@/directives';
import plugins from '@/plugins/index';
import $config from '@/config';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { router } from './router';
import { unmountGlobalLoading } from '@/utils/utils';
import VConsole from 'vconsole';

const app = createApp($config.app);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(directives);
app.use(plugins);
app.use(pinia);
app.use(i18n);
router(app);
app.mount('#app');

// new VConsole();

unmountGlobalLoading();
